<block name="main">
    <div class="panel panel-info">
        <div class="panel-heading">
            照片 <a href="{:U('Index/index')}">返回</a>
        </div>
            <br/>
            <button class="btn btn-default" data-toggle="modal" data-target="#myModal4" id="pct" onclick="func()">添加照片</button>
        <div class="panel-body">
            <empty name="data">
                <div style="margin-top:150px;font-size:50px;margin-left:35%;height:200px;">没有照片</div>
            <else />
                <foreach name="data" item="val">
                    <div class="col-xs-12 col-sm-6 col-md-4" >
                        <div class="thumbnail">
                            <img src="__ROOT__{$val['name']}" alt="..." aid="{$val['aid']}">
                            <div class="caption">
                                <h3 style="font-family:宋体;">{$val['addtime']}</h3>
                            </div>
                        </div>
                    </div>
                </foreach>
            </empty>
        </div>
    </div>
</block>
